<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/plantillas/default.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListGymControlPagosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="contenido">
            
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListGymControlPagosEmpty}" rendered="#{gymControlPagosController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{gymControlPagosController.items.rowCount > 0}">
                    <h:outputText value="#{gymControlPagosController.pagination.pageFirstItem + 1}..#{gymControlPagosController.pagination.pageLastItem + 1}/#{gymControlPagosController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{gymControlPagosController.previous}" value="#{bundle.Previous} #{gymControlPagosController.pagination.pageSize}" rendered="#{gymControlPagosController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{gymControlPagosController.next}" value="#{bundle.Next} #{gymControlPagosController.pagination.pageSize}" rendered="#{gymControlPagosController.pagination.hasNextPage}"/>&nbsp;
                    <h:dataTable value="#{gymControlPagosController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_idControlPago}"/>
                            </f:facet>
                            <h:outputText value="#{item.idControlPago}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_ultimaFechaPago}"/>
                            </f:facet>
                            <h:outputText value="#{item.ultimaFechaPago}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_proximaFechaPago}"/>
                            </f:facet>
                            <h:outputText value="#{item.proximaFechaPago}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_fechaAdicion}"/>
                            </f:facet>
                            <h:outputText value="#{item.fechaAdicion}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_usuarioAdicion}"/>
                            </f:facet>
                            <h:outputText value="#{item.usuarioAdicion}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_fechaModificacion}"/>
                            </f:facet>
                            <h:outputText value="#{item.fechaModificacion}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_usuarioModificacion}"/>
                            </f:facet>
                            <h:outputText value="#{item.usuarioModificacion}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_gymTipoPagoIdTipoPago}"/>
                            </f:facet>
                            <h:outputText value="#{item.gymTipoPagoIdTipoPago}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_gymRecibosIdRecibo}"/>
                            </f:facet>
                            <h:outputText value="#{item.gymRecibosIdRecibo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListGymControlPagosTitle_gymClientesIdCliente}"/>
                            </f:facet>
                            <h:outputText value="#{item.gymClientesIdCliente}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{gymControlPagosController.prepareView}" value="#{bundle.ListGymControlPagosViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{gymControlPagosController.prepareEdit}" value="#{bundle.ListGymControlPagosEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{gymControlPagosController.destroy}" value="#{bundle.ListGymControlPagosDestroyLink}"/>
                        </h:column>
                    </h:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{gymControlPagosController.prepareCreate}" value="#{bundle.ListGymControlPagosCreateLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ListGymControlPagosIndexLink}"/>

        </ui:define>
    </ui:composition>

</html>
